package com.saumya.robotlegs.events
{
	import flash.events.Event;
	import flash.filesystem.File;

	public class PublishEvent extends Event
	{
		public static const PUBLISH_ALL:String='publish_all_files_event';//pushing in master jsfl
		public static const PUBLISH_BATCH:String='publish_batch_files_event';//pushing in one jsfl
		
		private var fileToPush:File=new File();
		
		public function PublishEvent(type:String,bubbles:Boolean=false,cancelable:Boolean=false)
		{
			super(type,bubbles,cancelable);
		}
		public override function clone():Event
		{
			var evt:PublishEvent=new PublishEvent(this.type,this.bubbles,this.cancelable);
			evt.setFileToPublish(this.fileToPush);
			return evt;
		}
		
		public function setFileToPublish(fileRef:File):void
		{
			this.fileToPush=fileRef;
		}
		
		public function getFileToPublish():File
		{
			return this.fileToPush;
		}
		
	}
}